package com.web.service.impl;

import com.core.util.AnalysisUtil;
import com.core.util.FileUtil;
import com.core.vo.ResultVo;
import com.web.service.IndexServices;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class IndexServicesImpl implements IndexServices {

    @Override
    public ResultVo index(MultipartFile multipartFile) {
        ResultVo resultVo = new ResultVo();
        String fileStr = FileUtil.MultipartFileToString(multipartFile);
        // 解析sql文件
        AnalysisUtil.sqlAnalysis(fileStr);
        return resultVo;
    }
}
